<?php
/**
 * @copyright   Copyright (c) http://careyshop.cn All rights reserved.
 *
 * CareyShop    购物卡控制器
 *
 * @author      zxm <252404501@qq.com>
 * @date        2017/11/20
 */

namespace app\api\controller\v1;

use app\api\controller\CareyShop;

class Card extends CareyShop
{
    /**
     * 方法路由器
     * @access protected
     * @return void
     */
    protected static function initMethod()
    {
        self::$route = [
            // 添加一条购物卡
            'add.card.item'   => ['addCardItem'],
            // 编辑一条购物卡
            'set.card.item'   => ['setCardItem'],
            // 获取一条购物卡
            'get.card.item'   => ['getCardItem'],
            // 批量设置购物卡状态
            'set.card.status' => ['setCardStatus'],
            // 批量删除购物卡
            'del.card.list'   => ['delCardList'],
            // 获取购物卡列表
            'get.card.list'   => ['getCardList'],
        ];
    }
}
